
<script type="text/javascript">
$(document).ready(function() {
    $(".lnk").click(function(e) {
        $(this).attr("href", "trang-chu.html");
    });
});
</script>
<div id="line-wrap">
	<h2><?php echo Interior_and_exterior_detail?></h2>
</div>

<!-- #listArt -->
<div id="listArt" class="RollingArt">
        <?php foreach ($this->allObject as $a):?>
        <?php //foreach ($this->paginator as $a):?>
            <!-- .itemArt -->
	<div class="itemArt">
		<?php if($a["CLASSIFY"] == 'Gian Hang'){?>
			<a
			href="<?php echo DOMAIN."/noi-that-ngoai-that-de/".$a["ID"].".html"?>"><img
			src="<?php echo $a["OBJECT_IMG"]?>" width="210" height="210" alt=""></a>
		<h4><?php echo $a["OBJECT_NAME"]?></h4>
		<?php }else{?>
				<a
			href="<?php echo DOMAIN."/noi-that-ngoai-that-de-2/".$a["ID"].".html"?>"
			class="ajaxCall2" ><img
			 src="<?php echo $a["OBJECT_IMG"]?>"
			 width="210" height="210" alt=""></a>
		<h4><?php echo $a["OBJECT_NAME"]?></h4>
		<?php }?>
	
	</div>
	<!-- /.itemArt -->
        <?php endforeach;?>
            <div class="clear"></div>
</div>
<!-- /#listArt -->

<div id="pageNav">
        	<?php if($this->pg['start'] != $this->pg['end']):?>
        		<?php if($this->pg['page'] != 1):?>
	        		<a href="<?php echo $this->id?>.html"><?php echo end?></a> <a
		href="<?php echo $this->id.'.html'?>?page=<?php echo $this->pg['prev']?>"><?php echo previous?></a>
        		<?php endif;?>
        		<?php for ($i = $this->pg['start']; $i <= $this->pg['end']; $i++): ?>
        			<?php if($i == $this->pg['page']):?>
        				<span class="current"><?php echo $i?></span>
        			<?php else:?>
        				<a
		href="<?php echo $this->id.'.html'?>?page=<?php echo $i?>"><?php echo $i?></a>
        			<?php endif;?>
        		<?php endfor;?>
        		<?php if($this->pg['page'] != $this->pg['end']):?>
	        		<a
		href="<?php echo $this->id.'.html'?>?page=<?php echo $this->pg['next']?>"><?php echo next?></a>
	<a
		href="<?php echo $this->id.'.html'?>?page=<?php echo $this->pg['end']?>"><?php echo last?></a>
        		<?php endif;?>
            <?php endif;?>
        </div>